package br.com.dataphonebr;

import android.app.ListActivity;
import android.content.Context;
import android.widget.ListView;
import br.com.dataphonebr.service.GenericAdapterService;
import br.com.dataphonebr.util.ActivityUtil;
import br.com.dataphonebr.util.Util;

public class GenericListActivityOLD<Entity> extends ListActivity{
	
	protected int dataSelected;
	protected Util util = new Util();
	protected GenericAdapterService<Entity> adapter;
	private ActivityUtil<Entity> instanceActivityUtil;
	
	public ActivityUtil<Entity> instanceActivityUtil() {
		if (instanceActivityUtil == null)
			instanceActivityUtil = new ActivityUtil<Entity>(this);
		return instanceActivityUtil;
	}
	
    protected void openView(Context context, Class<?> clazz, boolean finish){
    	instanceActivityUtil.openView(context, clazz, finish);
    }
    
    protected ListView newListView(int id){
    	return instanceActivityUtil.newListView(id);
    }
    
    public int getDataSelected() {
		return dataSelected;
	}
    public void setDataSelected(int dataSelected) {
		this.dataSelected = dataSelected;
	}

}
